<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}" data-rule="required;length(2~100)">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}" data-rule="required">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所属分类')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-category" class="form-control selectpicker" name="row[wdcate_id]"  data-rule="required">
                {foreach name="category" item="vo"}
                <option value="{$vo.id}" {eq name="vo.id" value="$row.wdcate_id"}selected{/eq}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('标签')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-category_ids" class="form-control selectpicker" name="row[tags][]" multiple data-rule="required">
                {foreach name="categoryList" item="vo"}
                <option value="{$vo.id}" {in name="vo.id" value="$row.tags"}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>is_shang
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('悬赏贴')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_shang]', ['0'=>__('否'), '1'=>__('是')], $row.is_shang)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('给与令牌')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_ling]', ['0'=>__('不给予'), '1'=>__('给予')], $row.is_ling)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('精华帖')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_featured]', ['0'=>__('不加'), '1'=>__('加上')], $row.is_featured)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('审核')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_audit]', ['0'=>__('拒绝'), '1'=>__('通过')], $row.is_audit)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('内容')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" name="row[content]" rows="15">{$row.content}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row.status)}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>